pragma Singleton
import QtQuick

import "js/Fontawesome.js" as Fa
import "js/MaterialDesign.js" as Mdi
import "js/Codicon.js" as Codicon
import "js/Remixicon.js" as Ri
import "js/Phosphor.js" as Ph
import "js/fontawesome5-solid.js" as Fa5s

Item {
    id: iconfont

    readonly property var icons: {
        "fa": Fa.icons,
        "fa5s": Fa5s.icons,
        "mdi": Mdi.icons,
        "msc": Codicon.icons,
        "ri": Ri.icons,
        "ph": Ph.icons
    }

    readonly property var iconFamilies: {
        "fa": fontAwesome.name,
        "fa5s": fontAwesome5s.name,
        "mdi": fontMdi.name,
        "msc": fontMsc.name,
        "ri": fontRi.name,
        "ph": fontPh.name
    }
    readonly property FontLoader fontAwesome5s: FontLoader {
        source: "fonts/fontawesome5-solid-webfont-5.15.4.ttf"
    }

    readonly property FontLoader fontAwesome: FontLoader {
        source: "fonts/fontawesome-webfont.ttf"
    }
    readonly property FontLoader fontMdi: FontLoader {
        source: "fonts/MaterialIcons-Regular.ttf"
    }
    readonly property FontLoader fontMsc: FontLoader {
        source: "fonts/codicon.ttf"
    }
    readonly property FontLoader fontRi: FontLoader {
        source: "fonts/remixicon.ttf"
    }
    readonly property FontLoader fontPh: FontLoader {
        source: "fonts/phosphor.ttf"
    }
}
